package com.masterrabbit.sn.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.masterrabbit.sn.domain.RepairRecords;
import com.masterrabbit.sn.service.RepairRecordsService;
import com.masterrabbit.sn.mapper.RepairRecordsMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
* @author 13119
* @description 针对表【repair_records】的数据库操作Service实现
* @createDate 2025-03-21 20:54:09
*/
@Service
public class RepairRecordsServiceImpl extends ServiceImpl<RepairRecordsMapper, RepairRecords>
    implements RepairRecordsService{
    @Autowired
    private RepairRecordsMapper repairRecordsMapper;

    @Override
    public Page<RepairRecords> getRepairRecords(int pageNo, int pageSize, int userId) {
        Page<RepairRecords> page = new Page<>(pageNo, pageSize);
        return repairRecordsMapper.getRepairRecords(page, userId);
    }
}




